#include <iostream>
#include <map>
using namespace std;

map<string, double> following;
map<string, double> possible;

int main()
{
    int n;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        string s;
        cin >> s;
        following[s] = 1.0;
    }
    cin >> n;
    double sum = 0;
    for (int i = 0; i < n; i++)
    {
        string name;
        double like;
        cin >> name >> like;
        sum += like;
        if (following[name] == 0)
        {
            // 没有关注这个人
            possible[name] += like;
        }
    }
    double avg = sum / n;
    bool flag = true;
    for (map<string, double>::iterator it = possible.begin(); it != possible.end(); it++)
    {
        if (it->second > avg)
        {
            flag = false;
            cout << it->first << endl;
        }
    }
    if (flag)
    {
        cout << "Bing Mei You";
    }
    return 0;
}